#ifndef __LINKLISTWITHHEAD_H__
#define __LINKLISTWITHHEAD_H__
#include<stdlib.h>
#include<stdio.h>
#include<stdbool.h>
typedef int Datatype;

typedef struct node
{
    Datatype data;
    struct node *next;
}Node,*PNode;

typedef struct head
{
    int nodenum;
    struct node *first;
    struct node *last;
} Head;


Head *createlist();
void inserTolist(Datatype num,Head *h);
void printflist(Head *h);
void clearlist(Head *head);
void deletelist(Head *h);
void findValue(Head *h,Datatype x);
bool haIsSonOfnb(Head *ha,Head *hb);
#endif